home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Found / FWExcLib / Include / FWPriExc.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  1.3 KB  |  56 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWPriExc.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    (c) 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWPRIEXC_H
  11. #define FWPRIEXC_H
  12.  
  13. #ifndef   FWEXCEPT_H
  14. #include "FWExcept.h"
  15. #endif
  16.  
  17. #ifndef FWEXCDEF_H
  18. #include "FWExcDef.h"
  19. #endif
  20.  
  21. #if FW_LIB_EXPORT_PRAGMAS
  22. #pragma lib_export on
  23. #endif
  24.  
  25. typedef long FW_PlatformError;
  26.  
  27. //========================================================================================
  28. //    CLASS FW_XException
  29. //========================================================================================
  30.  
  31. class FW_CLASS_ATTR FW_XException FW_EXCEPTION_OBJECT
  32. {
  33. public:
  34.     FW_DECLARE_EXCEPTION(FW_XException)
  35.  
  36.     virtual~ FW_XException();
  37.     FW_XException(const FW_XException& exception);
  38.     FW_XException(FW_PlatformError theError);
  39.  
  40.     FW_PlatformError GetPlatformError() const;
  41.  
  42. private:
  43.     const FW_PlatformError fPlatformError;
  44. };
  45.  
  46. const FW_PlatformError FW_xUnknownError = 1;
  47.  
  48. FW_FUNC_ATTR    void FW_Failure(FW_PlatformError error);
  49. FW_FUNC_ATTR    void FW_FailOnError(FW_PlatformError error);
  50.  
  51. #if FW_LIB_EXPORT_PRAGMAS
  52. #pragma lib_export off
  53. #endif
  54.  
  55. #endif
  56.